package org.vs.handler.responsibilitychain.vote;

import lombok.Builder;
import lombok.Data;
import org.vs.contract.VoteContract;
import org.vs.domain.dto.PublishDTO;
import org.vs.domain.model.TVote;
import org.web3j.crypto.Credentials;

@Data
@Builder
public class VotePublishHandlerEO {
    private PublishDTO publishDTO;
    private Credentials credentials;
    private TVote vote;
    private VoteContract voteContract;
    private String hashcode;
    private Integer count;

    public Integer getCount() {
        if (count == null) {
            return 0;
        }
        return count;
    }
}
